//
//  AdvertCoverView.m
//  CheetahWash
//
//  Created by Audrey on 2020/4/18.
//  Copyright © 2020 ui. All rights reserved.
//


#import "AdvertCoverView.h"

@implementation AdvertCoverView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self==[super initWithFrame:frame]) {
        [self UIConfigure];
    }
    return self;
}

-(void)UIConfigure{
    _bgImage = [[UIImageView alloc] initWithFrame:self.bounds];
    _bgImage.clipsToBounds = YES;
    _bgImage.layer.cornerRadius = 10;
    _bgImage.contentMode = UIViewContentModeScaleToFill;
    [self addSubview:_bgImage];
}

- (void)setImgUrlStr:(NSString *)imgUrlStr{
    _imgUrlStr = imgUrlStr;
    [self.bgImage sd_setImageWithURL:[NSURL URLWithString:_imgUrlStr] placeholderImage:LoadImage(@"首页_banner")];
}


@end




